require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'
require 'soap/header/simplehandler'
require 'defaultDriver.rb'
require 'authStub.rb'

#Async create options
#options = CreateOptions.new(nil,nil,nil,nil,nil,nil,nil,nil,'Asynchronous')
options = nil

customerKey = 'API-Test-1'
desc = customerKey + ' - Made through the API'
content = '<p><b>Now</b> is the time for all <b>good men</b> to come to the <b>aid you country</b></p>'
content = content + content + content + content

conArea = ContentArea.new(nil,nil,nil,nil,nil,nil,nil,customerKey,nil,nil,nil,content,0,nil,customerKey,'HTMLWrapped',0,0)
apiObj = conArea

resp = $driver.create(CreateRequest.new(options,[*apiObj]))